package edu.sctu.zhengsenwen.month201506.day20150614.textthreadutil;

/**
 * Created by user15 on 2015/6/15.
 */
public class ThreadPriority {

    public static void main(String[] args) {

        Thread thread1 = new SimpleThread("线程1");

        Thread thread2 = new SimpleThread("线程2");

        thread1.setPriority(1);
        thread2.setPriority(2);

        thread1.start();
        thread2.start();
    }
}
